package cj.web.portal.dao;
/*
 *  
 *  
*/
import net.paoding.rose.jade.annotation.DAO;
import net.paoding.rose.jade.annotation.SQL;
import cj.web.kly.domain.Member;

/**
 * 
 * @author 
 *
 */
@DAO
public interface MemberVoDAO{
	
    @SQL("SELECT * FROM Member WHERE id=:1 ")
    Member queryById(int id);
    
    @SQL("SELECT * FROM Member WHERE phone=:1 ")
    Member queryByPhone(String phone);
    
    @SQL("UPDATE Member SET isError=isError+1 WHERE id=:1 ")
    void addErrorById(int id);
    
    @SQL("UPDATE Member SET pwd=:2,updateAt=now() WHERE id=:1 ")
    void updatePwdForPortal(int id,String pwd);
}